Skip to main content

Logistic Regression

Despite the name, this is NOT a regression algorithm. It's for Classification!

Temperature vs. Ice Cream High Sales​

Logistic Regression predicts probabilities (e.g. Will today have High Ice Cream Sales based on Temperature?). It squishes a straight line into an S-shape (the Sigmoid curve), guaranteeing the output is a clean percentage between 0% and 100%.

hashcomics
1 / 10
Panel 1
Panel 1
Panel 2
Panel 3
Panel 4
Panel 5
Panel 6
Panel 7
Panel 8
Panel 9
Panel 10

Python Implementation​

Logistic Regression & Sigmoid Predictor (Probabilistic Ice Cream Sales)